/*
 * Project Name: jmax
 * File Name: CardToRoom.java
 * Copyright: Copyright(C) 1985-2015 ZKTeco Inc. All rights reserved.
 */
package com.xdtech.hotel.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @version TODO 添加版本
 * @see 相关类或方法，不需要请删除此行
 * @since 2015-6-23 下午5:08:45
 */
@Entity
@Table(name="HOTEL_CARD_TO_ROOM")
public class CardToRoom extends BaseModel implements Serializable {

	/**
	 * TODO 说明成员变量的意义,目的,功能,可能被用到的地方
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name = "CARD_NO")
	private String cardNo;
	@Column(name = "CARD_ID")
	private Long cardId;
	@Column(name = "ROOM_ID")
	private Long roomId;
	
	public CardToRoom() {
		super();
	}
	
	public CardToRoom(String cardNo, Long cardId, Long roomId) {
		super();
		this.cardNo = cardNo;
		this.cardId = cardId;
		this.roomId = roomId;
	}

	public Long getId()
	{
		return id;
	}
	public void setId(Long id)
	{
		this.id = id;
	}
	public String getCardNo()
	{
		return cardNo;
	}
	public void setCardNo(String cardNo)
	{
		this.cardNo = cardNo;
	}
	public Long getCardId()
	{
		return cardId;
	}
	public void setCardId(Long cardId)
	{
		this.cardId = cardId;
	}
	public Long getRoomId()
	{
		return roomId;
	}
	public void setRoomId(Long roomId)
	{
		this.roomId = roomId;
	}
}
